'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 道具
 * @author sundbcn@gmail.com (sun debing)
 */

var propertySell = require('./property/sell');
var propertySellAll = require('./property/sellAll');
var propertyCompose = require('./property/compose');

module.exports = function (app) {
    return new Handler(app);
};

var Handler = function (app) {
    this.app = app;
};

/**
 * 出售
 */
Handler.prototype.sell = function (msg, session, next) {
    propertySell(msg, session, next);
};

/**
 * 出售所有
 */
Handler.prototype.sellAll = function (msg, session, next) {
    propertySellAll(msg, session, next);
};

/**
 * 合成道具
 */
Handler.prototype.compose = function (msg, session, next) {
    propertyCompose(msg, session, next);
};
